package io.bdmc.modules.bss.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 报警等级 实体
 * </p>
 *
 * @author 黄露
 * @since 2021-05-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
// "DeviceAlarmLevel对象", description = "报警等级")
public class DeviceAlarmLevel extends Model<DeviceAlarmLevel> {

  private static final long serialVersionUID = 1L;

  // "主键id")
  @TableId(value = "alarm_level_id", type = IdType.AUTO)
  private Integer alarmLevelId;

  // "报警等级名称")
  private String alarmLevelName;

  // "报警等级代码A-D")
  private String alarmLevelCode;

  // "报警显示颜色")
  private String displayColor;

  // "报警时播放的声音")
  private String playVoice;

  @Override
  public Serializable pkVal() {
    return this.alarmLevelId;
  }

}
